package com.yg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yg.entity.readAndWriteTemplates.ResearchProjectRead;
import com.yg.entity.singleEntity.ResearchProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对应sheet05，此表是教研项目表 Mapper 接口
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface ResearchProjectMapper extends BaseMapper<ResearchProject> {
    //查询所有
    IPage<ResearchProjectRead> selectAllResearchProjectInfo(Page<ResearchProjectRead> researchProjectReadPage);

    //条件查询
    IPage<ResearchProjectRead> researchProjectConditionalQuery(Page<ResearchProjectRead> researchProjectReadPage, @Param("researchProjectRead") ResearchProjectRead researchProjectRead);

    //条件导出
    List<ResearchProjectRead> writeResearchProjectConditionalQuery(@Param("researchProjectRead") ResearchProjectRead researchProjectRead);

}
